let vm = new Vue({
    el: '.page-content',
    data: {
        pageInfo: {},
        Article: {},
        conditional: {
            title: ''
        }
    },
    methods: {
        selectPage: function (pageNum = 1, pageSize = 3) {

            axios({
                url: `mapper/article/selectPage/${pageNum}/${pageSize}`,
                params: this.conditional
            }).then(response => {
                this.pageInfo = response.data.obj;
            }).catch(error => {
                console.log(error.message)
            })
        },
        release: function () {
            layer.open({
                type: 2,
                title: false,
                area: ['70%', '70%'],
                content: 'mapper/article/release',

            })
        },
        collection:function (article) {
            layer.obj=article;
            layer.open({
                type: 2,
                title: false,
                area: ['80%', '80%'],
                content: 'mapper/article/collection',

            })
        }
    },
    created: function () {
        this.selectPage();
    }

});